package com.example.feigntest.controller;

import com.example.feigntest.dto.Order;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述：
 *
 * @author YangQun by 2020/10/17
 */
@RestController
public class FeignEncoderTestController {

    private final Logger log = LoggerFactory.getLogger(getClass());

    public static final String URI = "encoderTest";

    /**
     * 换行符
     */
    private static final String LINE_SEPARATOR = System.lineSeparator();

    @PostMapping(URI)
    public void test(@RequestBody Order order){
        log.info("{}FeignEncoderTestController order = {}", LINE_SEPARATOR, order);
    }


}
